package Test;
import java.util.Scanner;

public class Test04 {

	public static void main(String[] args) {

		
		int random1 =(int)(Math.random()*10);
		int random2 =(int)(Math.random()*10);
		Scanner s = new Scanner(System.in);
		System.out.println("请输入2个10以下整数的和");
		int num = s.nextInt();
		
		int random = random1+random2;
		System.out.println("随机生成的2个10以下整数和为："+random);
		if(num == random){
			System.out.println("true");
		}else{
			System.out.println("false");
		}
	}

}
